<template>
  <div class="goodsdev-container">
      <h3>{{goodsDev.title}}</h3>
      <hr>
      <div v-html="goodsDev.content"></div>
  </div>
</template>
<script>
export default {
  data(){
    return {
      goodsDev:{}
    }
  },
  created(){
    this.getGoodsdev()
  },
  methods:{
    getGoodsdev(){
      this.$http.get('api/goods/getdesc/'+this.$route.params.id).then(result => {
        if(result.status === 200 && result.data.status === 0){
          this.goodsDev = result.data.message[0]
        }
      })
    }
  }
}
</script>
<style lang="less" scoped>
.goodsdev-container{
  padding: 5px;
  h3{
    font-size: 16px;
    margin: 15px 0;
    text-align: center;
    color:#0069ff
  }
  /deep/ img{
    width: 100%;
  }
}

</style>


